<template>
	<div style="background-color:white;">
		<mu-list>
		    <!--<mu-sub-header inset>通知中心</mu-sub-header>-->
		    <section style="height: 3rem;"></section>
		    <mu-list-item v-for="(item,index) in allNotice" key="item" :title="item.schoolAnnouncementTitle" :to="'tznr/'+item.schoolAnnouncementId" :describeText="item.schoolAnnouncementUpdateTime.slice(0,10)">
		      <mu-avatar icon="assignment" backgroundColor="blue" slot="leftAvatar" />
		    </mu-list-item>
		  </mu-list>
	</div>
</template>
<script>
export default {
	data(){
		return{
			tzlb: [],
			allNotice:[]
		}
	},mounted () {
//		this.loadParams()
		this.loadAllNews()
		
	},
  	methods: {
		loadParams(){
			let that = this
			that.axios.get('/gleenSoft-base/xxgl/tzgg/list').then(function (response) {
	        	that.tzlb = response.data.result
	      	}).catch(function (error) {
	        	console.log(error);
	      	});
		},
		loadAllNews(){
			let that = this
			that.axios.get('iyx/announce/SelectAll?token='+localStorage.token).then(function (response) {
	        	that.allNotice = response.data
	      	}).catch(function (error) {
	        	console.log(error);
	      	});
		},
		
	}
}

</script>
<style scoped>
</style>
